# Contributor: knuxify <knuxify@gmail.com>
# Maintainer: team/kde <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=maui
pkgname=mauikit-terminal
pkgver=3.0.2
pkgrel=0
pkgdesc="Terminal support components for Maui applications"
url="https://mauikit.org/"
# armhf blocked by mauikit -> qt5-qtdeclarative
arch="all !armhf"
license="GPL-2.0-or-later"
depends="kirigami2"
depends_dev="
	kconfig5-dev
	kcoreaddons5-dev
	ki18n5-dev
	mauikit-dev
	qt5-qtbase-dev
	"
makedepends="$depends_dev
	extra-cmake-modules
	samurai
	"
subpackages="$pkgname-dev $pkgname-lang"
_repo_url="https://invent.kde.org/maui/mauikit-terminal.git"
source="https://download.kde.org/stable/maui/mauikit-terminal/$pkgver/mauikit-terminal-$pkgver.tar.xz"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=ON \
		$crossopts
	cmake --build build
}

check() {
	ctest --test-dir build --output-on-failure
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
b1082f3351c3f0e5bba1e4daea98cb93e5bfa07731d4cfc0b6beba791b2cb4dcf5b362dce977793baa10334c9712e183c37a071628f73d27664583bffe5e2edf  mauikit-terminal-3.0.2.tar.xz
"
